import convolution from '../operations/convolution'

const sobelVertical = function (pixels, amount, canvas) {
  const divider = 4
  const operator = [1 / divider, 0, -1 / divider, 2 / divider, 0, -2 / divider, 1 / divider, 0, -1 / divider]

  pixels = convolution(canvas, pixels, operator)

  return pixels
}

export default sobelVertical
